using BuildTablesAndData;
using DMS.ServiceLocation;
using Microsoft.Practices.ServiceLocation;
using NUnit.Framework;

namespace DMS.Integration.Testing
{
    public class TestBase
    {
        protected IServiceLocator serviceLocator;
    	readonly Builder builder = new Builder();

        [TestFixtureSetUp]
        public void TestFixtureSetUp()
        {
            serviceLocator = ServiceLocatorFactory.GetServiceLocator();
        
			builder.Build();
		}

		[TestFixtureTearDown]
		public void TestFixtureTearDown()
		{
			builder.Drop();
		}
	}
}